package com.bjpowernode.singleton;

/**
 * @ClassName Singleton01
 *
 * @Author Cat
 */
public final class Singleton01 {

    //类变量，在类加载的时候就会初始化，在多线程下也不会出现初始化两次的情况
    private static Singleton01 instance = new Singleton01();

    private Singleton01() {

    }

    public static Singleton01 getInstance() {
        return instance;
    }
}